import React from 'react';
import { connect } from 'dva';
import PageContent from '../../components/PageContent';
import QuaReportTable from './QuaReportTable';

@connect(({ qualityreport, loading }) => ({ qualityreport, loading: loading.models.qualityreport }))
class QualityReportManage extends React.Component {
  render() {
    const { dispatch, loading, qualityreport: { ReportInfo, ProjectList, RelatedAnalysisData } } = this.props;
    const qualityreportTableProps = {
      dispatch,
      loading,
      ReportInfo,
      ProjectList,
      RelatedAnalysisData,
    };
    return (
      <PageContent title="质量报告管理" >
        <QuaReportTable {...qualityreportTableProps} />
      </PageContent>
    );
  }
}

export default QualityReportManage;
